﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace Irrlicht.Net
{
    public class Timer : ReferenceCounted
    {       
        #region PInvoke
        [DllImport(@"IrrlichtW.dll", CallingConvention = CallingConvention.Cdecl)]
        internal static extern uint Timer_GetTime(IntPtr timer);
        #endregion

        internal static Timer CreateTimer(IntPtr pointer)
        {
            Timer timer = new Timer();
            timer.pointer = pointer;
            return timer;
        }

        public virtual uint GetTime()
        {
            return Timer_GetTime(pointer);
        }
    }
}
